package chapter_8.map;

import java.util.HashMap;
import java.util.Hashtable;
import java.util.LinkedHashMap;

public class Test2 {
    public static void main(String[] args) {
        HashMap<String,String> hm=new HashMap<String,String>();
        hm.put("abc", "def");
        hm.put(null,"ghk");
        hm.put("mn",null);
        hm.put(null,null);
        System.out.println(hm);


        LinkedHashMap<Integer,String> lhm=new  LinkedHashMap<Integer,String>();
        lhm.put(6,"ghk");
        lhm.put(3,"def");
        lhm.put(1,"abc");
        System.out.println(lhm);


//        Hashtable<String,String> table = new Hashtable<>();
//        table.put(null,"");


    }
}
